package heap;

public class Test {
    public static void main(String[] args) {
        TestHeap testHeap = new TestHeap();
        int[] elm = {27,15,19,18,28,34,65,49,25,37};
        testHeap.initArray(elm);
        testHeap.createHeap();
        //插入元素
        testHeap.offer(80);
        // 删除元素
        testHeap.poll();
        // 从小打到排序
        testHeap.heapSort();
    }
}
